<div class="row-fluid sortable ui-sortable">
	<div id="form_jenis" class="box span6" style="float:left;">
		<div class="box-header well" data-original-title>
			<h2 id="action-jenis-sapi">Menambah Data Jenis Sapi</h2>
			<div class="box-icon">
				<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
			</div>
		</div>
		<div class="box-content">
			<form id="form-tambah-jenis-sapi" method="post" action="<?php echo base_url();?>sapi/tambah_jenis_sapi" style="width: 86%; float: left;">
				<table class="table">
					<tbody>
						<tr>
							<td><label class="control-label">Nama Jenis</label></td>
							<td><input id="nama-jenis" type="text" name="nama-jenis"></input></td>
						</tr>
						<tr>
							<td><label class="control-label">Berat Normal</label></td>
							<td><input id="berat-normal" type="text" name="berat-normal"></input></td>
						</tr>
						<tr>
							<td><label class="control-label">Panjang Normal</label></td>
							<td><input id="panjang-normal" type="text" name="panjang-normal"></input></td>
						</tr>
						<tr>
							<td><label class="control-label">Tinggi Normal</label></td>
							<td><input id="tinggi-normal" type="text" name="tinggi-normal"></input></td>
						</tr>
						<tr>
							<td><label class="control-label">Produksi Daging Normal</label></td>
							<td><input id="daging-normal" type="text" name="daging-normal"></input></td>
						</tr>
						<tr>
							<td></td>
							<input type="hidden" id="id-jenis-sapi" name="id-sapi" value=""></input>
							<td>
								<input type="reset" class="btn" value="Reset" onclick="resetJenis();"></input>
								<input id="button-panel" type="submit" class="btn"></input>
							</td>
						</tr>
					</tbody>
				</table>
			</form>
		</div>
		
	</div>
	<div id="form_daging" class="box span6" style="float:left;">
		<div class="box-header well" data-original-title>
			<h2 id="action-daging-sapi">Menambah Data Daging Sapi</h2>
			<div class="box-icon">
				<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
			</div>
		</div>
		<div class="box-content">
			<form id="form-tambah-daging-sapi" method="post" action="<?php echo base_url();?>sapi/tambah_daging_sapi" style="width: 86%; float: left;">
				<table class="table">
					<tbody>
						<tr>
							<td><label class="control-label">Nama Daging</label></td>
							<td><input id="nama-daging" type="text" name="nama-daging"></input></td>
						</tr>
						<tr>
							<td><label class="control-label">Info Daging</label></td>
							<td><textarea id="info-daging" name="info-daging"></textarea></td>
						</tr>
						<tr>
							<td></td>
							<input type="hidden" id="id-daging-sapi" name="id-sapi" value=""></input>
							<td>
								<input type="reset" class="btn" value="Reset" onclick="resetDaging();"></input>
								<input id="button-panel" type="submit" class="btn"></input>
							</td>
						</tr>
					</tbody>
				</table>
			</form>
		</div>
	</div>
</div>

<script>

	function resetJenis(){
		$('#action-jenis-sapi').html("Menambah Data Jenis Sapi");
		$('#form-tambah-jenis-sapi').attr("action","<?php echo base_url(); ?>sapi/tambah_jenis_sapi");
		$("#id-jenis-sapi").val("");
	}
	
	function resetDaging(){
		$('#action-daging-sapi').html("Menambah Data Daging Sapi");
		$('#form-tambah-daging-sapi').attr("action","<?php echo base_url(); ?>sapi/tambah_daging_sapi");
		$("#id-daging-sapi").val("");
	}
	
</script>